package com.org.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.org.model.Conferenceroom;
import com.org.model.Orderrecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.org.model.User;
import org.apache.ibatis.annotations.Param;

import java.sql.Wrapper;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author test
 * @since 2021-06-05
 */
public interface OrderrecordMapper extends BaseMapper<Orderrecord> {
    public List<Map<String,Object>> selectAllRecord();
    public IPage<Orderrecord> selectAllPage(Page<Orderrecord> page);
    public List<Orderrecord> selectAll();
    public IPage<Orderrecord> selectAllPageByTime(Integer current, Integer size, LocalDateTime time);
    public List<Orderrecord> selectByCid(Integer cid);
    public boolean deleteById(Integer id);
    public List<Orderrecord> selectByUid(Integer uid);
    public IPage<Orderrecord> selectPageByUid(Page<Orderrecord> page,Integer uid);
    public IPage<Orderrecord> selectNowPage( Page<Orderrecord> page,@Param("uId") Integer uid,@Param("dateTime") LocalDateTime dateTime);
    public IPage<Orderrecord> selectDefaultPage( Page<Orderrecord> page,@Param("uId") Integer uid,@Param("dateTime") LocalDateTime dateTime);

    public IPage<Orderrecord> selectOrdPage(Page<Orderrecord> page,@Param("uId") Integer uid);
}
